#include "stdafx.h"

#include <iostream>

#include "../FizzBuzzLib/FizzBuzz.h"

int _tmain(int argc, _TCHAR* argv[])
  {
  std::string input;
  while (std::getline(std::cin, input) && !input.empty())
    {
    try
      {
      std::cout << FizzBuzz(std::stoi(input)) << std::endl;
      }
    catch (const std::exception &e)
      {
      std::cout << e.what() << std::endl;
      }
    }

  return 0;
  }

